"""


"""
from rest_framework.pagination import PageNumberPagination
from rest_framework.response import Response


class MyPageNumberPagination(PageNumberPagination):
    page_size_query_param = "pagesize"

    max_page_size = 20

    page_size = 2

    def get_paginated_response(self, data):
        return Response({
            "page":self.page.number,
            "pages":self.page.paginator.num_pages,
            "lists": data
        })

